using System.Collections;
using System.Collections.Generic;
using cmd;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;

public class FishHook : FishTool
{
    protected override void HandleValidCollision(Fish fishMonobehavior)
    {
        //获取特定属性并保存
        FishSaveData capturedFish = new FishSaveData
        {
            //todo 保存对应属性
            Name = fishMonobehavior.fishName,
            MaxValue = fishMonobehavior.fishUnitValue * fishMonobehavior.fishBaseWeight,
            MaxWeight = fishMonobehavior.fishBaseWeight
        };
        
        OnFishCaught?.Invoke(capturedFish);
        //内容信息管理
        FishDataManager.Instance.AddFish(capturedFish);
    }
    public override string GetToolName()
    {
        return "FishHook";
    }

}




